package stu.aistar.service;

import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import stu.aistar.model.pojo.MovieType;

import java.util.List;

public interface MovieTypeService {

    List<MovieType> findAll();
    
    PageInfo<MovieType> findByPage(Integer startPage,Integer pageSize);

    Integer findTotal();

    MovieType findMovieTypeByName(String name);

    Integer insertMovieType(String name);

    Boolean updateTypeById(MovieType movieType);

    Boolean deleteTypeByName(String name);
}
